import { request } from '@/utils'

export default {
  // 获取招聘者个人信息
  getRecruiter: (recruiter_id) => request.get(`/recruiter/getRecruiter/${recruiter_id}`),
  // 更新招聘者个人信息
  updateRecruiter: (data) => request.put('/recruiter/updateRecruiter', data),
  // 提交招聘信息申请
  saveJobPosting: (data) => request.post('/recruiter/saveJobPosting', data),
  // 获取招聘者所有招聘信息
  getRecruiterJobPosting: (recruiter_id) => request.get(`/recruiter/getRecruiterJobPosting/${recruiter_id}`),
  // 获取招聘者审核通过之后的招聘信息
  getRecruiterAuditedJobPosting: (recruiter_id) => request.get(`/recruiter/getRecruiterAuditedJobPosting/${recruiter_id}`),
  // 删除招聘信息
  deleteJobPosting: (job_id) => request.put(`/recruiter/deleteJobPosting/${job_id}`),
  // 更新招聘信息
  updateJobPosting: (data) => request.put('/recruiter/updateJobPosting',data),
  // 获取投递简历列表
  getResumeSubmissions: (recruiter_id) => request.get(`/recruiter/getResumeSubmissions/${recruiter_id}`),
  // 获取简历投递进展
  getResumeSubmissionProgress: (submission_id) => request.get(`/recruiter/getResumeSubmissionProgress?submission_id=${submission_id}`),
  // 获取企业招聘人员选择列表
  getCompanyRecruiters: (company_id) => request.get(`/recruiter/getCompanyRecruiters/${company_id}`),
  // 获取招聘人员面试安排列表
  getInterviewArrangements: (recruiter_id) => request.get(`/recruiter/getInterviewArrangements/${recruiter_id}`),
  // 通过面试
  passInterview: (data) => request.put('/recruiter/passInterview',data),
  // 不通过面试
  failInterview: (data) => request.put('/recruiter/failInterview',data),
  // 安排面试
  arrangeInterview: (data) => request.post('/recruiter/arrangeInterview',data),
}
